//
//  XPBaseTableViewCell.swift
//  PPKit
//
//  Created by iosdevmac201 on 2020/11/25.
//  Copyright © 2020 scoresdata.net. All rights reserved.
//

import UIKit

class XPBaseTableViewCell: UITableViewCell {
    /// 是否正在操作中
    var isActioning:Bool = false

    class func cell(tableView:UITableView) -> Self {
        var cell = tableView.deqCell(c:self)
        if cell == nil {
            cell = self.init(id:reuseId())
            cell!.selectionStyle = .none
            cell!.backgroundColor = pp_color(.CFFFFFF)
            cell!.contentView.backgroundColor = pp_color(.CFFFFFF)
            cell!.createUI()
        }
        return cell!
    }
    
    func createUI() {
        //子类重写
    }
    
    required init(id:String) {
        super.init(style:.default,reuseIdentifier:id)
    }

    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }

}

